<?php

namespace zhtfrontend\models\datas;

use Yii;

/**
 * This is the model class for table "{{%customer_coupons_log}}".
 *
 * @property integer $id
 * @property integer $customer_coupons_id
 * @property integer $coupon_id
 * @property integer $customer_id
 * @property integer $coupons_code_id
 * @property integer $invalid_time
 * @property integer $delay_invalid_time
 * @property integer $user_id
 * @property integer $create_at
 */
class CustomerCouponsLog extends \zhtfrontend\components\bases\BaseModel
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%customer_coupons_log}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['customer_coupons_id', 'coupon_id', 'customer_id', 'coupons_code_id', 'invalid_time', 'delay_invalid_time', 'user_id', 'create_at'], 'integer'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('zhtfrontend', 'ID'),
            'customer_coupons_id' => Yii::t('zhtfrontend', 'Customer Coupons ID'),
            'coupon_id' => Yii::t('zhtfrontend', 'Coupon ID'),
            'customer_id' => Yii::t('zhtfrontend', 'Customer ID'),
            'coupons_code_id' => Yii::t('zhtfrontend', 'Coupons Code ID'),
            'invalid_time' => Yii::t('zhtfrontend', 'Invalid Time'),
            'delay_invalid_time' => Yii::t('zhtfrontend', 'Delay Invalid Time'),
            'user_id' => Yii::t('zhtfrontend', 'User ID'),
            'create_at' => Yii::t('zhtfrontend', 'Create At'),
        ];
    }
}
